# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-tts-server-plugin
pkgver=0.0.2_alpha13
pkgrel=1
pkgdesc="OpenVoiceOS companion plugin for OpenVoiceOS TTS Server"
url="https://github.com/OpenVoiceOS/ovos-tts-server-plugin"
# loongarch64: blocked by py3-ovos-plugin-manager
arch="noarch !loongarch64"
license="Apache-2.0"
depends="
	py3-ovos-plugin-manager
	py3-requests
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-tts-server-plugin/archive/refs/tags/${pkgver//_alpha/a}.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-tts-server-plugin-${pkgver//_alpha/a}"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
2a08c090d745bff63b7cb35ecbfcf6889676e0e4eaf2b21c84cbeed4a6f0c58d66cc238506e03d7509dc658a3b95232d37b64f5d178fb92974bd11524c9a880c  py3-ovos-tts-server-plugin-0.0.2_alpha13.tar.gz
"
